<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>PolarVectorLayer.setArrowStem</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="PolarVectorLayer.htm">PolarVectorLayer</a>.<wbr>setArrowStem</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setArrowStem(int[] polygon)
</div>
<p class="heading2">Description</p>
<div class="content">
Sets a custom shape to be used as the arrow stem.<br><br>
By default, the arrow stem is just a straight line, with the line width controlled using <a href="PolarLayer.setLineWidth.htm">PolarLayer.setLineWidth</a>. The setArrowStem method can specify a custom shape for the arrow stem.<br><br>
The custom shape is specified as an array of integers x0, y0, x1, y1, x2, y2 ... representing the coordinates of the vertices of the custom polygonal shape.<br><br>
The polygon should be defined with a bounding square of 10 x 100 units, in which the x-axis is from left to right, and the y-axis from bottom to top. The origin is assumed to be the starting point of the arrow stem, and the shape is assumed to represent an arrow stem pointing upwards.<br><br>
ChartDirector will automatically scale the shape so that the total arrow length (head + stem) is the required length of the arrow as according to actual data, and the stem width is as specified in <a href="PolarLayer.setLineWidth.htm">PolarLayer.setLineWidth</a>.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>polygon</td><td>(Mandatory)</td><td>An array of integers x0, y0, x1, y1, x2, y2 ... representing the coordinates the polygon vertices on a 10 x 100 units grid.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
